package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * ClassName: UserMapper
 * Description:
 * Author: yzh
 * Create 2025/3/12 17:19
 * Version: 1.0
 */
@Mapper
public interface UserMapper {
    @Select("select * from user where openid = #{openId}")
    User selectByOpenId(String openId);

    void insert(User user);

    Integer countByMap(Map map);
}
